package com.carkeeper.service.serviceFallback;

import com.carkeeper.dto.ClassPropertiesDTO;
import com.carkeeper.dto.CompTypeDTO;
import com.carkeeper.service.CompTypeFeign;
import com.carkeeper.vo.Pager;
import feign.hystrix.FallbackFactory;

public class CompTypeFallbackFactory implements FallbackFactory<CompTypeFeign> {
    @Override
    public CompTypeFeign create(Throwable throwable) {
        return new CompTypeFeign() {
            @Override
            public ClassPropertiesDTO getClassPropertiesById(Long id) {
                return null;
            }

            @Override
            public Pager<ClassPropertiesDTO> getClassPropertiesByPage(Integer page, Integer pagesize, Integer classId) {
                return null;
            }

            @Override
            public CompTypeDTO queryCompTypeById(Long id) {
                return null;
            }
            @Override
            public Pager<CompTypeDTO> getFirstCompTypeByPage(Long page, Long pagesize, Integer parentId, String name, Integer code) {
                return null;
            }
        };
    }
}
